package org.duiduo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.duiduo.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户Mapper
 *
 * @author liangze
 * @date 2024/3/6 11:35
 */
@Repository
@Mapper
public interface UserMapper {

    /**
     * 保存
     */
    void save(User user);

    /**
     * 查询
     *
     * @param id
     * @return
     */
    User get(Long id);

    Integer getGroupByPhone(String phone);
}
